﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CC3 RID: 3267
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class OpenRogueChestScRsp : IMessage<OpenRogueChestScRsp>, IMessage, IEquatable<OpenRogueChestScRsp>, IDeepCloneable<OpenRogueChestScRsp>, IBufferMessage
	{
		// Token: 0x17002916 RID: 10518
		// (get) Token: 0x060091E5 RID: 37349 RVA: 0x001833CD File Offset: 0x001815CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<OpenRogueChestScRsp> Parser
		{
			get
			{
				return OpenRogueChestScRsp._parser;
			}
		}

		// Token: 0x17002917 RID: 10519
		// (get) Token: 0x060091E6 RID: 37350 RVA: 0x001833D4 File Offset: 0x001815D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return OpenRogueChestScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002918 RID: 10520
		// (get) Token: 0x060091E7 RID: 37351 RVA: 0x001833E6 File Offset: 0x001815E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return OpenRogueChestScRsp.Descriptor;
			}
		}

		// Token: 0x060091E8 RID: 37352 RVA: 0x001833ED File Offset: 0x001815ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OpenRogueChestScRsp()
		{
		}

		// Token: 0x060091E9 RID: 37353 RVA: 0x001833F8 File Offset: 0x001815F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OpenRogueChestScRsp(OpenRogueChestScRsp other) : this()
		{
			this.dropData_ = ((other.dropData_ != null) ? other.dropData_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060091EA RID: 37354 RVA: 0x00183460 File Offset: 0x00181660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OpenRogueChestScRsp Clone()
		{
			return new OpenRogueChestScRsp(this);
		}

		// Token: 0x17002919 RID: 10521
		// (get) Token: 0x060091EB RID: 37355 RVA: 0x00183468 File Offset: 0x00181668
		// (set) Token: 0x060091EC RID: 37356 RVA: 0x00183470 File Offset: 0x00181670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList DropData
		{
			get
			{
				return this.dropData_;
			}
			set
			{
				this.dropData_ = value;
			}
		}

		// Token: 0x1700291A RID: 10522
		// (get) Token: 0x060091ED RID: 37357 RVA: 0x00183479 File Offset: 0x00181679
		// (set) Token: 0x060091EE RID: 37358 RVA: 0x00183481 File Offset: 0x00181681
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700291B RID: 10523
		// (get) Token: 0x060091EF RID: 37359 RVA: 0x0018348A File Offset: 0x0018168A
		// (set) Token: 0x060091F0 RID: 37360 RVA: 0x00183492 File Offset: 0x00181692
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x060091F1 RID: 37361 RVA: 0x0018349B File Offset: 0x0018169B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as OpenRogueChestScRsp);
		}

		// Token: 0x060091F2 RID: 37362 RVA: 0x001834AC File Offset: 0x001816AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(OpenRogueChestScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.DropData, other.DropData) && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060091F3 RID: 37363 RVA: 0x00183510 File Offset: 0x00181710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.dropData_ != null)
			{
				num ^= this.DropData.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060091F4 RID: 37364 RVA: 0x0018357B File Offset: 0x0018177B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060091F5 RID: 37365 RVA: 0x00183583 File Offset: 0x00181783
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060091F6 RID: 37366 RVA: 0x0018358C File Offset: 0x0018178C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.dropData_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.DropData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060091F7 RID: 37367 RVA: 0x00183604 File Offset: 0x00181804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.dropData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DropData);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060091F8 RID: 37368 RVA: 0x00183674 File Offset: 0x00181874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(OpenRogueChestScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.dropData_ != null)
			{
				if (this.dropData_ == null)
				{
					this.DropData = new ItemList();
				}
				this.DropData.MergeFrom(other.DropData);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060091F9 RID: 37369 RVA: 0x00183708 File Offset: 0x00181908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060091FA RID: 37370 RVA: 0x00183714 File Offset: 0x00181914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 104U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.dropData_ == null)
							{
								this.DropData = new ItemList();
							}
							input.ReadMessage(this.DropData);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x0400379C RID: 14236
		private static readonly MessageParser<OpenRogueChestScRsp> _parser = new MessageParser<OpenRogueChestScRsp>(() => new OpenRogueChestScRsp());

		// Token: 0x0400379D RID: 14237
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400379E RID: 14238
		public const int DropDataFieldNumber = 15;

		// Token: 0x0400379F RID: 14239
		private ItemList dropData_;

		// Token: 0x040037A0 RID: 14240
		public const int RetcodeFieldNumber = 13;

		// Token: 0x040037A1 RID: 14241
		private uint retcode_;

		// Token: 0x040037A2 RID: 14242
		public const int RewardFieldNumber = 6;

		// Token: 0x040037A3 RID: 14243
		private ItemList reward_;
	}
}
